import request from '@/utils/request'

// 创建暂存订单
export function createHoldOrder(data) {
  return request({
    url: '/merchant/api/v1/per-save-order',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}
// 获得暂存订单列表
export function getHoldOrderList(params) {
  return request({
    url: '/merchant/api/v1/per-save-order',
    method: 'get',
    params
  })
}
// 获得暂存订单详情
export function getHoldOrderdDtails(id) {
  return request({
    url: `/merchant/api/v1/per-save-order/${id}`,
    method: 'get'
  })
}
// 删除订单
export function deleteoldOrderd(id) {
  return request({
    url: `/merchant/api/v1/per-save-order/${id}`,
    method: 'delete'
  })
}

